<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	String context = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>로그인 화면</title>
<script type="text/javascript">
	function registUser() {
		document.frm1.action = '<%=context %>/createUserAction';
		document.frm1.submit();
	}
	
	function onSubmit() {
		document.frm1.submit();
	}
</script>
</head>
<body>
	<form action="<%=context %>/loginAction" method="post" name="frm1">
		id : <input name="id" type="text">
		password : <input name="password" type="text">
		<input type="button" onclick="onSubmit();" value="로그인">
		<input type="button" onclick="registUser();" value="회원가입">
	</form>
</body>
</html>